---@class Battle.AiTriggerSetAction:Battle.AiLeaf
---@field New fun():Battle.AiTriggerSetAction
local AiTriggerSetAction = Battle.CreateClass("AiTriggerSetAction",Battle.AiLeaf)
Battle.AiTriggerSetAction = AiTriggerSetAction
local t = AiTriggerSetAction
function t:Awake()
    self:SetParamKey(1,"key")
    self:SetParamKey(2,"value")
end
function t:onInitialize()
    local key = self:GetParam("key")
    local value = self:GetParam("value")
    self:GetBlackboard():Set(key,value)
end

function t:ToString()
    local s = Battle.AiBehavior.ToString(self)
    return s.." key:"..self:GetParam("key").." value:"..tostring(self:GetParam("value"))
end
